﻿@model CommonShop.Service.User

@{
    ViewBag.Title = "编辑";
    Layout = "~/Areas/Manage/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>用户编辑</legend>
        @Html.HiddenFor(Model => Model.UserID)

        <div>@Html.LabelFor(Model => Model.UserName)</div>
        <div>@Html.EditorFor( Model => Model.UserName)</div>
        <div>@Html.ValidationMessageFor( Model => Model.UserName)</div>

        <div>@Html.LabelFor(Model => Model.UserPassword)</div>
        <div>@Html.EditorFor( Model => Model.UserPassword)</div>
        <div>@Html.ValidationMessageFor( Model => Model.UserPassword)</div>

        <div>@Html.LabelFor(Model => Model.UserState)</div>
        <div>@Html.EditorFor( Model => Model.UserState)</div>
        <div>@Html.ValidationMessageFor( Model => Model.UserState)</div>

        <div>@Html.LabelFor(Model => Model.Email)</div>
        <div>@Html.EditorFor(Model => Model.Email)</div>
        <div>@Html.ValidationMessageFor(Model => Model.Email)</div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    
<div>
    @Html.ActionLink("Back to List", "UserList")
</div>

    
}